package com.cykj.service.impl;

import com.cykj.dto.ResponseDTO;
import com.cykj.entity.CategoryDO;
import com.cykj.mapper.CategoryMapper;
import com.cykj.service.ICategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Program: Mooc-User
 * @Package: com.cykj.service.impl
 * @Author: 张俊杰
 * @Create: 2025-07-15 13:37
 * @Description: TODO
 * @Vision: 1.0
 **/
@Service
public class CategoryServiceImpl implements ICategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public ResponseDTO getListCategory() {
        List<CategoryDO> listCategory = categoryMapper.getListCategory();
        return ResponseDTO.success(listCategory);
    }
}
